#ifndef __GAME_OBJECT__
#define __GAME_OBJECT__

#include "Header.h"

class GameObject : public CCNode
{
public:

	bool isNeedDelete;
	CCSprite* mainSprite;
	CCPoint oldPosition;

	virtual bool init();
	virtual void prepareAnimation(){};
	~GameObject();

	virtual CCArray* createSpriteArray();
	virtual void update(float delta){};

	// getter & setter
	int getState();
    void changeState(int state);
	
protected:
	int state;
	
};
#endif // !__GAME_OBJECT__
